package com.xingchen.netty.auth;

import com.xingchen.netty.domain.UserInfo;

/**
 * 用户建立websocket 链接授权验证
 */
public class UserAuth {
    public UserInfo getUserInfo(String token){
        if(token.equals("token")){
            UserInfo userInfo =new UserInfo();
            userInfo.setUid("1");
            return  userInfo;
        }
        return null;
    }
}
